#!/usr/bin/env python
# coding:utf-8
'''
Created on 2015-1-4

@author: scemoon
@summary: 数据库初始化，导入初始数据，其中initdata.xml可以通过../web/export_initdata.sh生成
'''

import db_env
from django.core.management import call_command

_initdata_ = "initdata.xml"

if  __name__== "__main__":
    #初始化工程环境settings
    db_env.init()
    call_command("loaddata",  _initdata_)
